<?php
/* include 'protected/components/Libimagick.php';
$image = new Libimagick();
$image->open('old.gif');
$image->crop(0,0,300,189,1000,700);
$image->save_to('new.gif');
exit; */
//定义时区
date_default_timezone_set('Asia/Shanghai');
define('ROOT_DIR',str_replace('\\','/',str_replace('htdocs','',dirname(__FILE__) )));
define('WEB_DIR',str_replace('\\','/',dirname(__FILE__).DIRECTORY_SEPARATOR));
header("Content-Type: text/html;charset=utf-8");
// change the following paths if necessary
$yii=dirname(__FILE__).'/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';

// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

require_once($yii);

Yii::setPathOfAlias('base', dirname(__FILE__));
Yii::createWebApplication($config)->run();